package com.hxj.docking.pojo.dto;

import lombok.Data;

/**
 * @Author hxj
 * @Date 2024/12/5 15:33
 * @Description 接收端接收完数据后的返回数据实体
 */
@Data
public class ReceiveResultDTO {

    String CODE;
    String ERROR_CODE;
    String ERROR_MSG;
    String SIGNATURE;
    Object DATA;

    private final static String SUCCESS_CODE = "200", FAIL_CODE = "502";

    public static boolean isSuccess(ReceiveResultDTO receiveResultDTO) {
        return receiveResultDTO.getCODE().equals(SUCCESS_CODE);
    }

}
